import request from '@/router/axios';
import qs from 'qs';
const prefix = '/zuul/materialManage';

export default {
	//获取字典信息
	getDicData(data) {
		return request({
			url: '/rule/schnPublicDict/queryByTypeIds',
			method: 'GET',
			params: data
		});
	},
	// 码表信息
	querySysDictInfo: type => request({
		url: prefix + '/dataManage/partnerMsg/querySysDictInfo?' + qs.stringify({ type }),
		method: 'GET',
	}),
	// 省份信息
	getProvinceList(){
		return request({
			url: '/zuul/userCenter/user/getProvinceList',
			method: 'get'
		});
	},
	// 城市信息
	queryCityList(provinceCode){
		return request({
			url: '/zuul/userCenter/user/getCityList?' + qs.stringify({ provinceCode }),
			method: 'get'
		});
	},
	// 行业信息
	queryCooperateTypeInfo(parentCooperateId){
		return request({
			url: '/zuul/materialManage/dataManage/partnerMsg/queryCooperateTypeInfo?' + qs.stringify({ parentCooperateId }),
			method: 'get'
		});
	},
    // 领域树形
    getDomainTree(data) {
        return request({
            url: '/zuul/materialManage/dPcsDomain/getDomainTree',
            method: 'post',
            data
        });
    },
	// 部门信息
	getCurrentOgrTreeByCondition(data){
		return request({
			url: '/zuul/userCenter/sysOrUser/getCurrentOgrTreeByCondition',
			method: 'post',
			data:data
		});
	},
    // 部门员工信息
    getCurrentLoginOgrTreeByCondion(data) {
        return request({
            url: '/zuul/userCenter/sysOrUser/getCurrentLoginOgrTreeByCondion',
            method: 'post',
            data: data
        });
    },
    // 工作流审核信息
    getFlowRecordsByWorkOrderId(data) {
        return request({
            url: '/zuul/materialManage/work-order-process-msg/getFlowRecordsByWorkOrderId',
            method: 'post',
            data: data
        });
    },
    // 获取用户信息
    getUserEnhanceInfo() {
        return request({
            url: '/zuul/userCenter/user/getUserEnhanceInfo',
            method: 'get'
        });
    },
    // 修改阅知状态
    updateReadingInfo(data) {
        return request({
            url: '/zuul/materialManage/work-order-process-msg/updateReadingInfo',
            method: 'post',
            data
        });
    },
    //
};
